using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class EnemyStateMachine
{
    public EnemyState currentState;
    public void initialize(EnemyState _startState)
    {
        currentState = _startState;
        currentState.Enter();
    }
    public void changeState(EnemyState _newState)
    {
        currentState.Exit();
        currentState = _newState;
        currentState.Enter();
        
    }

}
